Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standard library support for guests #759

Open
wants to merge 89 commits into
base: master
Choose a base branch
from
Open

Conversation

matthiasgoergens
Copy link
Collaborator

@matthiasgoergens matthiasgoergens commented Dec 14, 2024

Standard library support for guests works, but this PR needs some polishing and depends on a lot of other PRs that should go in first, to make this one easier to review. Nevertheless, you can have a look and try this one out, if you want.

Depends on:

@matthiasgoergens matthiasgoergens changed the title Standard library support for guests (WIP) Standard library support for guests Dec 15, 2024
unreachable!();
}
#[cfg(not(target_arch = "riscv32"))]
unimplemented!("Halt is not implemented for this target: {}", exit_code);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unimplemented!("Halt is not implemented for this target, exit_code: {}", exit_code); would be easier to understand

@@ -0,0 +1,31 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in future, when users run ceno-cli init-project ..., will this riscv32im-ceno-zkvm-elf.json be put into their workspace, (allow editting), or actually this file is not something they can change, bounded to "ceno plaform"?

for the latter case, this file should be in rt folder instead of example folder?

@lispc
Copy link
Collaborator

lispc commented Dec 16, 2024

  1. we still need to add an example where it uses a std lib? eg std::BTreeMap to do something? as a test case.
  2. what is the high level summary on the magic how std supported is done? seems like some building script magic, and main entry point asm magic?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants